kernel.h File Reference

#include "macros.h"

Include dependency graph for kernel.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Namespaces

namespace   mudbox

Classes

class   mudbox::FileEvent
  Holds information about the a recent or in-progress file event. See m_pFileEvent for more information. More...
class   mudbox::KeyboardEvent
class   mudbox::Kernel
  The main API access point to Mudbox, contains the most basic functions and data. More...
class   mudbox::Timer
  Helps finding performance issues. See the MB_TIMER macro for more details. More...
class   mudbox::Statistics
  Holds useful information about the current session of Mudbox. More...
class   mudbox::Instance< c >
  This is a helper class to manage class instances implemented in plugins, provided for convenience. More...

Functions

MBDLL_DECL Kernel *  Kernel (void)
  Returns a pointer to the mudbox kernel object.
template<typename c>
c *  CreateInstance (void)
  This function provides an easy way to create objects based on interfaces.

Function Documentation

MBDLL_DECL Kernel* Kernel void   ) 
 

Returns a pointer to the mudbox kernel object.

template<typename c>
c* CreateInstance void   ) 
 

This function provides an easy way to create objects based on interfaces.

Example:

    Image *pMyImage = CreateInstance<Image>();
See Kernel::PreferredDescendant() funtion for more details.
00637 { return dynamic_cast<c *>( Kernel()->CreateClassInstance( c::StaticClass() ) ); };